@import './../../lib/reset.scss';

.container,#root,.box {
  @include flex();
  @include rect(100%, 100%);
}
.box{
  @include flexbox();
  flex-direction: column;
  @include justify-content(space-between);
  .h1 {
    @include rect(100%, .6rem);
    @include background-color(#b83320);
    position: relative;
    .logo {
      @include rect(.8rem, .2rem);
      background:url() no-repeat;
      background-size: 100% 100%;
      position: absolute;
      top: 50%;
      margin-top: -.1rem;
      left: .2rem;
    }
    .sex {
      @include rect(1rem, .36rem);
      position: absolute;
      top: 50%;
      left: 50%;
      margin-top: -.18rem;
      margin-left: -.39rem;
      .boy {
        @include rect(.5rem, .36rem);
        @include background-color(#fff);
        color: grey;
        display: inline-block;
        line-height: .36rem;
        text-align: center;
        border-top-left-radius: .15rem;
        border-bottom-left-radius: .15rem;
        border: 1px solid #fff;
        position: absolute;  
      }
      .girl {
        @include rect(.5rem, .36rem);
        color: #fff;
        display: inline-block;
        line-height: .36rem;
        text-align: center;
        border: 1px solid #fff;
        border-top-right-radius: .15rem;
        border-bottom-right-radius: .15rem;
        position: absolute;
        right: 0;
      }
    }
    .b1 {
      display: inline-block;
      position: absolute;
      right: .6rem;
      text-align: center;
      height: 100%;
      line-height: .6rem;
      color: #fff;
      .icon-shujia1 {
        font-size: 30px;
      }
    }
    .b2 {
      display: inline-block;
      position: absolute;
      right: .2rem;
      text-align: center;
      height: 100%;
      line-height: .6rem;
      color: #fff;
      font-size: 30px;
      .icon-denglu{
        font-size: 30px;
      }
    }
  }
  .content {
    @include rect(100%, 100%);
    @include overflow();
    .search {
      // border: 1px solid green;
      @include rect(100%, .5rem);
      @include flexbox();
      @include justify-content();
      @include align-items();
      input {
        @include rect(90%, .3rem);
      }
    }
    .book-section {
      @include rect(95%, auto);
      margin: 0 auto;
      // border: 1px solid green;
      .title {
        color: indigo;
        font-size: 17px;
      }
      .book-list {
        @include rect(100%, auto);
        .list {
          @include rect(100%, auto);
          @include flexbox();
          @include justify-content(space-between);
          border-bottom: 1px solid blue;
          padding: .1rem 0;
          .img {
            @include rect(.8rem, 1rem);
            background: url(./1.jpeg) no-repeat;
            background-size: 100% 100%;
          }
          .right {
            // border: 1px solid red;
            @include rect(75%, 1rem);
            .name {
              span {
                font-size: 16px;
                color: #333;
              }
              // .bookname {
                // padding-top: .4rem;
              // }
              .complete {
                background-color: green;
                color: #fff;
                font-size: 12px;
                margin-left: .2rem;
                display: inline-block;
                width: .3rem;
                height: .15rem;
                line-height: .15rem;
                text-align: center;
                border-radius: .05rem;
              }
            }
            .desc {
              color: #999;
              // overflow: hidden;
              // white-space: nowrap;
              // text-overflow:ellipsis;
              display: -webkit-box;
              -webkit-line-clamp: 2;
              -webkit-box-orient: vertical;
              word-break: break-all;
              text-overflow: ellipsis;
              overflow: hidden;
              margin: .08rem 0;
              line-height: 0.18rem;
            }
            .cate {
              @include flexbox();
              @include justify-content(space-between);
              .category {
                @include flexbox();
                div {
                  background-color: rgb(180, 177, 177);
                  color: honeydew;
                  border-radius: .05rem;
                  font-size: 12px;
                  padding: .02rem 0.02rem;
                  margin-right: .2rem;
                  line-height: 100%;
                  text-align: center;
                  span {
                    color: rgb(179, 11, 11);
                  }
                }
              }
              .tag {
                border: 1px solid #999;
                border-radius: .05rem;
                font-size: 12px;
                padding: .02rem;
                line-height: 100%;
                text-align: center;
                color: #999;
              }
            }
          }
        }
      }
    }
  }
  .footer {
    @include rect(100%, 0.56rem);
    @include background-color(#fcfcfc);
    @include border(1px 0 0 0, solid #f1f0e7);
    ul {
      @include rect(100%, 100%);
      @include flexbox();
      a {
        @include color(#b1b1b1);
        @include flex();
        @include rect(auto, 100%);
        @include flexbox();
        @include flex-direction(column);
        @include justify-content();
        @include align-items();
        span {
          @include font-size(0.24rem);
        }
        p {
          @include font-size(0.12rem);
        }
        &.active {
          @include color(#e7564c);
        }
      }
    }
  }
}